package com.xiaoy.core.workflow.service;

import org.springframework.stereotype.Service;

import com.xiaoy.core.workflow.engine.entity.InstanceProcessVO;
import com.xiaoy.core.workflow.engine.entity.ProcessInstantiate;
import com.xiaoy.exception.BPMException;

@Service("processInstanceService")
public class ProcessInstanceService extends IProcessInstanceAdapt{

	
	
	@Override
	public ProcessInstantiate startProcessInstance(InstanceProcessVO vo) throws BPMException {
		
		return workflow.createProcessInstanceById(vo);
	}
	
	

}
